<template>
  <div style="height:100%">
    <keep-alive>
      <router-view :key="key"/>
    </keep-alive>
  </div>
</template>

<script>
export default {
  name: 'ParentView',
  computed: {
    key() {
      return this.$route.path
    }
  }
}
</script>